
#include "Application.hpp"


namespace NSApplication {

	Application::Application(int argc, char* argv[]) : 
		AbstractApplication(argc, argv) 
	{
		setApplicationName("OpenLaser ���Ű汾(Copyright @��С��-kcjsdust@163.com) v25 0.0.1");
		setApplicationVersion("v25 0.0.1");

	}


	Application::~Application() {
		for (auto item : m_objects.toStdMap()) {
			if (item.second != nullptr) {
				delete item.second;
			}
		}
		m_objects.clear();
	}


	void Application::registerManager(QString name, NSCore::AbstractObject* object) {
		if (!m_objects.contains(name) && object) {
			m_objects.insert(name, object);
		}
	}




}
